//路由懒加载
const index = resolve => require(['../views/index.vue'], resolve)
const login = resolve => require(['../views/login.vue'], resolve)
const home = resolve => require(['../views/page/home.vue'], resolve)


export default {
  // mode:'history',
  routes: [{
    path: '/',
    redirect: '/index'
  }, {
    path: '/login',
    component: login
  }, {
    path: '/index',
    component: index,
    redirect: '/index/home',
    children: [{
      path: 'home',
      component: home
    }]
  }]
}